﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zzva.Common;



namespace Zzva.DomainObject
{
    public class TDirITCompanyNew:TDirITCompanyBase 
    {

        public TDirITCompanyNew()
            : base()
        {
            mvarObozn = "";
            mvarNaim = "";
        }
        
        
        public TDirITCompanyNew(string pObozn, string pNaim)
            : base()
        {
            //mvarObozn = pObozn;
            //mvarNaim = pNaim;
            Obozn = pObozn;
            Naim = pNaim;
        }


        public override string Obozn
        {
            get{return mvarObozn;}
            set
            {
                try
                {
                    string lObozn;
                    lObozn = value.TrimEnd();
                    if (lObozn == "") { throw (new CommonException("Обозначение не должно быть пустым")); }
                    mvarObozn = lObozn;
                }

                catch (Exception e) { throw e; }
                finally { }

            }
        }



        public  override string Naim
        {
            get { return mvarNaim; }
            set { mvarNaim = value;}
        }





    }
}
